Hi. Well, it's working. Here's what I've done:
QFile f("D:/img.bin"); if(f.open(QIODevice::ReadOnly)){ QByteArray b = f.readAll(); QImage img((const uchar*) b.constData(), 4096, 2160, 4096, QImage::Format_Indexed8); QVector<QRgb> colorTable; for (int i = 0; i < 256; i++){ colorTable.push_back(qRgb(i,i,i)); } img.setColorTable(colorTable); img.save("D:/img.png"); f.close(); }And here's what I got: